package com.liuwei.msmall.common.exception;

import lombok.Data;

/**
 * @Classname NoStockException
 * @Description TODO
 * @Date 2020/7/15 22:54
 * @Created by 刘
 */
@Data
public class NoStockException extends RuntimeException{

    private Long skuId;

    public NoStockException(){
        super("锁定库存失败");
    }

    public NoStockException(Long skuId){
        super("商品id："+skuId+"库存不足");
    }

}
